.App {
  text-align: center;
}
.App-header {
  background-color: #282c34;
  min-height: 100vh;
  display: flex;
  font-size: calc(10px + 2vmin);
  color: white;
}

.App-link {
  color: #61dafb;
}

.screen-container {
  background-color: #ffffff;
  height: 100vh;
  width: 100vw;
  display: flex;
}

.game-container {
  /* background: #1b5e20; */
  background: url(./res/images/bg_game.jpg) no-repeat center/100% 100%;
  height: 100vh;
  /* width: 75vw; */
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.rules-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 25vw;
  background-color: #788ca5;
  display: none;
}

.rules-text {
  font-size: calc(3px + 1vmin);
  padding: 5px;
  font-weight: 500;
}

.suitImg {
  width: 5%;
  max-width: 13px;
}

.game-opponent {
  display: flex;
  /* height: 75vh; */
  height: 60vh;
}

.game-player {
  display: flex;
}

.game-left {
  height: 100%;
  width: 10vw;
}

.game-middle {
  height: 100%;
  width: 55vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game-right {
  height: 100%;
  width: 10vw;
}

.player-action {
  width: 30%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  padding-left: 5vh;
}

.player-button {
  cursor: pointer;
  display: inline-block;
  /* background-color: #1c84de; */
  background: url(./res//images/btn_game.png) no-repeat center/100% 100%;
  /* padding: 0.3em 1.2em; */
  padding: 1.3em 2.2em;
  margin: 0 0.1em 0.1em 0;
  border: 0.16em solid rgba(255, 255, 255, 0);
  border-radius: 2em;
  box-sizing: border-box;
  text-decoration: none;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  color: #ffffff;
  text-shadow: 0 0.04em 0.04em rgba(0, 0, 0, 0.35);
  /* text-align: center; */
  display: flex;
  justify-content: center;
  align-items: center;
  outline: none;
  /* max-width: 40%; */
  min-width: 40%;
  max-height: 20%;
  font-size: 1vw;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  transition: all 0.2s;
}

.disabled-button {
  cursor: default;
  /* background-color: #424242; */
  background: url(./res/images/disable_btn_game.png) no-repeat center/100% 100%;
}

.player-button:hover {
  border-color: rgba(255, 255, 255, 1);
  border-radius: 2em;
}
.player-container {
  /* height: 25vh; */
  height: 40vh;
  width: 85%;
  display: flex;
  align-self: center;
  /* align-items: center; */
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 1vh;
  z-index: 1;
}

.card-container {
  display: flex;
}

.playingfield-container {
  height: 65vh;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.playingfield-section {
  display: flex;
  align-items: center;
  width: 100%;
  height: 33.3%;
}

.playingfield-player {
  display: flex;
  flex-direction: row;
  height: 85%;
}
.playingfield-text {
  /* font-size: 1.3vw; */
  font-size: 3.3vw;
  font-family: roboto;
  height: 15%;
  position: relative;
  z-index: 3;
  color: #d5b358;
  top: -76%;
}
.section-middle {
  justify-content: space-evenly;
}

.section-top {
  justify-content: center;
}

#player {
  flex-direction: column;
}

.left-field {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  height: 100%;
}

.right-field {
  display: flex;
  width: 50%;
  height: 100%;
  align-items: center;
  flex-direction: row;
  justify-content: center;
}

.opponent-container {
  height: 10vh;
  width: 100%;
  display: flex;
  align-self: center;
  justify-content: center;
  align-items: center;
}

.opponent-container-left {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.opponent-container-right {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.card {
  cursor: pointer;
  width: 90px;
  height: 140px;
  max-height: 95%;
  margin-right: -60px;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.field-card {
  width: 90px;
  height: 140px;
  margin-right: -60px;
  filter: blur(0);
  -webkit-filter: blur(0);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.computer-side {
  width: 50px;
  height: 75px;
  margin-bottom: -50px;
  transform: rotate(90deg) translateY(-1vh);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.computer-top {
  width: 50px;
  height: 75px;
  margin-right: -15px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.selectedcard {
  margin-bottom: 40px;
  border-radius: 6px;
  box-shadow: 0px 0px 5px #fff !important;
}

.card:hover {
  /* margin-bottom: 40px; */
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.slit-in-vertical {
  -webkit-animation: slit-in-vertical 0.45s ease-out both;
  animation: slit-in-vertical 0.45s ease-out both;
}

.flip-in-ver-left {
  -webkit-animation: flip-in-ver-left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94)
    both;
  animation: flip-in-ver-left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.tracking-in-expand-fwd {
  -webkit-animation: tracking-in-expand-fwd 1.3s
    cubic-bezier(0.215, 0.61, 0.355, 1) both;
  animation: tracking-in-expand-fwd 1.3s cubic-bezier(0.215, 0.61, 0.355, 1)
    both;
  text-shadow: -6px 6px 18px rgba(0, 0, 0, 0.35);
}

.resetButton {
  position: absolute;
  /* right: 25.5vw; */
  right: 0.5vw;
  top: 0.5vh;
  cursor: pointer;
  z-index: 1;
}

@-webkit-keyframes tracking-in-expand-fwd {
  0% {
    letter-spacing: -0.5em;
    -webkit-transform: translateZ(-700px);
    transform: translateZ(-700px);
    opacity: 0;
  }
  80% {
    opacity: 1;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  100% {
    opacity: 0;
  }
}
@keyframes tracking-in-expand-fwd {
  0% {
    letter-spacing: -0.5em;
    -webkit-transform: translateZ(-700px);
    transform: translateZ(-700px);
    opacity: 0;
  }
  80% {
    opacity: 1;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  100% {
    opacity: 0;
  }
}

@-webkit-keyframes flip-in-ver-left {
  0% {
    -webkit-transform: rotateY(80deg);
    transform: rotateY(80deg);
    opacity: 0;
  }
  100% {
    -webkit-transform: rotateY(0);
    transform: rotateY(0);
    opacity: 1;
  }
}
@keyframes flip-in-ver-left {
  0% {
    -webkit-transform: rotateY(80deg);
    transform: rotateY(80deg);
    opacity: 0;
  }
  100% {
    -webkit-transform: rotateY(0);
    transform: rotateY(0);
    opacity: 1;
  }
}

@-webkit-keyframes slit-in-vertical {
  0% {
    -webkit-transform: translateZ(-800px) rotateY(90deg);
    transform: translateZ(-800px) rotateY(90deg);
    opacity: 0;
  }
  54% {
    -webkit-transform: translateZ(-160px) rotateY(87deg);
    transform: translateZ(-160px) rotateY(87deg);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateZ(0) rotateY(0);
    transform: translateZ(0) rotateY(0);
  }
}
@keyframes slit-in-vertical {
  0% {
    -webkit-transform: translateZ(-800px) rotateY(90deg);
    transform: translateZ(-800px) rotateY(90deg);
    opacity: 0;
  }
  54% {
    -webkit-transform: translateZ(-160px) rotateY(87deg);
    transform: translateZ(-160px) rotateY(87deg);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateZ(0) rotateY(0);
    transform: translateZ(0) rotateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  25% {
    opacity: 1;
  }

  100% {
    opacity: 1;
  }
}

@media (max-width: 1200px), (max-height: 800px) {
  .card {
    width: 75px;
    height: 115px;
    margin-right: -50px;
  }

  .field-card {
    width: 60px;
    height: 92px;
    margin-right: -40px;
  }

  .computer-side {
    width: 40px;
    height: 60px;
    margin-bottom: -40px;
  }

  .computer-top {
    width: 40px;
    height: 60px;
    margin-right: -15px;
  }
}

@media (max-width: 820px) {
  .card {
    width: 60px;
    height: 92px;
    margin-right: -50px;
  }

  .field-card {
    /* width: 40px;
    height: 60px; */
    width: 54px;
    height: 77px;
    margin-right: -25px;
  }

  .computer-side {
    width: 30px;
    height: 46px;
    margin-bottom: -40px;
  }

  .computer-top {
    width: 30px;
    height: 46px;
    margin-right: -15px;
  }
}
